<?php  
$i=0;
foreach ($data->result() as $row):
    $i++;
?>
    <tr>
        <td  style="width:70px">
                <a href="manage/genderadd/?id=<?php echo $row->id;?>" class="edit btn btn-default btn-xs" aria-label="Left Align">
                  <span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
                </a>
                <a href="manage/genderremove/?id=<?php echo $row->id;?>" class="remove btn btn-default btn-xs" data-toggle="modal" data-target=".bs-example-modal-sm" aria-label="Left Align">
                  <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                </a>
        </td>
        <td class="col-md-1"><?php echo $i?></td>
        <td><?php echo $row->name;?></td>

    </tr> 
    <?php
    endforeach;
    ?>